package com.taowan.xunbaozl.morning_speak.design_pattern.pre;

/**
 * Created by 杨观回 on 2016/2/25 0025.
 */
public class ThreePowerStation {

    private ThreePower threePower;

    public ThreePowerStation(ThreePower threePower) {
        this.threePower = threePower;
    }

    public void supplyPower() {
        if (threePower != null) {
            threePower.threePower();
        }
    }
}
